export default [
    {
        path: '/learn/:courseId',
        component: () => import('@/views/course/CourseLearnView'),
        children: [
            {
                name: 'learn-notice',
                path: 'notice',
                component: () => import('@/views/course/course-learn/NoticeListView')
            },
            {
                name: 'learn-content',
                path: 'content',
                component: () => import('@/views/course/course-learn/ContentListView')
            },
            {
                name: 'learn-test-list',
                path: 'test/list',
                component: () => import('@/views/course/course-learn/TestListView')
            },
            {
                name: 'learn-test-detail',
                path: 'test/detail/:examId',
                component: () => import('@/views/course/course-learn/TestDetailView')
            },
            {
                name: 'learn-test-record',
                path: 'test/record/:examRecordId',
                component: () => import('@/views/course/course-learn/TestDetailView')
            },
            {
                path: 'test/*',
                redirect: {
                    name: 'learn-test-list'
                }
            },
            {
                name: 'learn-discussion-list',
                path: 'discussion/list',
                component: () => import('@/views/course/course-learn/LearnDiscussionListView')
            },
            {
                name: 'learn-discussion-detail',
                path: 'discussion/detail/:discussionId',
                component: () => import('@/views/course/course-learn/LearnDiscussionDetailView')
            },
            {
                path: 'discussion/*',
                redirect: {
                    name: 'learn-discussion-list'
                }
            },
            {
                name: 'learn-bench',
                path: 'bench/:contentId',
                component: () => import('@/views/course/course-learn/LearnBenchView')
            },
            {
                path: '*',
                redirect: {
                    name: ''
                }
            }
        ]
    }
]
